import Incident from './incident'
import mixinWebGl from '@src/webgl/mixinWebGl'
import mixinTimeline from '@src/timeline/mixinTimeline'

(function bootstrap () {
  if (!detector.webgl) {
    detector.addGetWebGLMessage()
    return;
  }

  // 初始化 WEBGL
  mixinWebGl(Incident)

  // 初始化 时间轴
  mixinTimeline(Incident)

  const incident = new Incident()

  incident.render();
})();

